<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<title>window的全局函数</title>
	</head>
	<body>
		<h2>window的全局函数</h2>
		<ul>
			<li>parseInt</li>
			<li>parseFloat</li>
			<li>isNaN</li>
			
			<li>eval</li>
		</ul>
		
		<script type="text/javascript">
			var str="alert('xxxx')";
			//console.log(str);
			//把字符解析成代码来处理
			eval(str);
			
		</script>
		
	</body>
</html>
